<table>
  <thead>
    <tr>
      <th>Project</th>
      <th>User</th>
      <th>Doc</th>
      <th>By user</th>
      <th>Enabled</th>
      <th>End at</th>
      <th>Remark</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @shares.each do |share| %>
      <tr>
        <td><%= share.project_id %></td>
        <td><%= share.user_id %></td>
        <td><%= share.doc_id %></td>
        <td><%= share.by_user_id %></td>
        <td><%= share.enabled %></td>
        <td><%= share.end_at %></td>
        <td><%= share.remark %></td>
        <td><%= link_to 'Show', share %></td>
        <td><%= link_to 'Edit', edit_share_path(share) %></td>
        <td><%= link_to 'Destroy', share, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>